home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- set the volume of sound 2 to 255
- sound playFile 2, getpn() & "Sounds:bckgrd5.aif"
- cursor(4)
- memoryInitialise()
- InitialiseGlobals()
- SpriteStates()
- repeat with i = 255 down to 0
- set the volume of sound 2 to i
- startTimer()
- repeat while the timer < 1
- nothing()
- end repeat
- end repeat
- sound stop 2
- OpenFillScreen()
- end
-
- on InitialiseGlobals
- global gBackgroundSound, gBackgroundVolume, gWhereFrom, gWhichSound1, gWhichSound2, gWhichSound3, gWhichSound4, gWhichSound5, gWhichSound6, gWhichSound7, gWhichSound8, gWhichSound9, gWhichSound10, gLoopScale, gBassScale, gKeyboardScale, gOutputScale, gFragment1, gFragment2, gFragment3, gFragment4, gBassKill, gSliderPos1, gSliderPos2, gSliderPos3, gSliderPos4, gDoneVid
- set gBackgroundSound to 1
- set gBackgroundVolume to 255
- if voidp(gWhereFrom) then
- set gWhereFrom to EMPTY
- end if
- set gArtistFrom to EMPTY
- set gWhichSound1 to EMPTY
- set gWhichSound2 to EMPTY
- set gWhichSound3 to EMPTY
- set gWhichSound4 to EMPTY
- set gWhichSound5 to EMPTY
- set gWhichSound6 to EMPTY
- set gWhichSound7 to EMPTY
- set gWhichSound8 to EMPTY
- set gWhichSound9 to EMPTY
- set gWhichSound10 to EMPTY
- set gLoopScale to 256
- set gBassScale to 256
- set gKeyboardScale to 256
- set gOutputScale to 100
- set gSliderPos1 to 1
- set gSliderPos2 to 2
- set gSliderPos3 to 3
- set gSliderPos4 to 4
- set gFragment1 to 0
- set gFragment2 to 0
- set gFragment3 to 0
- set gFragment4 to 0
- set gBassKill to 0
- set gDoneVid to 0
- end
-
- on SpriteStates
- repeat with i = 29 to 35
- set the visible of sprite i to 0
- end repeat
- set the visible of sprite 48 to 0
- set the volume of sound 1 to 255
- set the volume of sound 2 to 255
- set the foreColor of sprite 42 to 255
- set the foreColor of sprite 43 to 255
- set the foreColor of sprite 44 to 255
- set the foreColor of sprite 45 to 255
- set the foreColor of sprite 46 to 255
- set the foreColor of sprite 47 to 255
- end
-
- on MemoryRoutine
- global gMemorySize
- if the memorysize < 12000000 then
- set gMemorySize to 8
- SmallPreload()
- end if
- if the memorysize >= 12000000 then
- set gMemorySize to 16
- BigPreload()
- end if
- end
-
- on stopMovie
- global gColourDepth
- set the colorDepth to gColourDepth
- forget(window "Stdsound.dir")
- forget(window "Artists.dir")
- forget(window "Titles.dir")
- forget(window "Quiz.dir")
- repeat with i = 1 to 13
- sound stop i
- end repeat
- closeFillScreen()
- end
-